package hottargui.framework;



import java.util.*;

public class GameData {
	List<Tile> boardConfiguration;
	Player currentPlayer;
	Map<PlayerColor,Player> players;
	int NoRoundsToPlay = 0;
	
	public GameData()
	{
		this.boardConfiguration = new ArrayList<Tile>();
		this.players = new HashMap<PlayerColor,Player>();
	}
	
	public List<Tile> getBoardConfiguration()
	{
		return this.boardConfiguration;
	}
	
	public void setCurrentPlayer(PlayerColor currentPlayerColor)
	{
		currentPlayer = players.get(currentPlayerColor);
	}
	
	public Player getCurrentPlayer()
	{
		return currentPlayer;
	}
	
	public void setRoundsToPlay( int rounds)
	{
		NoRoundsToPlay = rounds;
	}
	
	public int getRoundsToPlay()
	{
		return NoRoundsToPlay;
	}
	
	public void endRound()
	{
		NoRoundsToPlay--;
	}
	
	public int getRoundsLeft()
	{
		return NoRoundsToPlay;
	}
	
	public Map<PlayerColor, Player> getPlayers()
	{
		return players;
	}
	
}
